<?php
declare (strict_types = 1);

namespace app\article1\controller;

use app\Article1\model\City;
use app\Request;

class Index
{
    public function index()
    {
        return '您好！这是一个[article1]示例应用';
    }
    public function add(){
        $citvs=City::where('pid',0)->select();
        return view('add',['citvs'=>$citvs]);
    }
    public function lianD(Request $request){
        $pid=$request->getContent();
        $data=City::where('pid',$pid)->select();
        return $data;
    }
}
